package org.ledeange.textflow;

import org.ledeange.textflow.exceptions.TextFlowException;

public class StringField extends AbstractField {

  protected Object readString(String string) {
	  return string;
  }

  protected String createString(Object object) throws TextFlowException {
	  if (object instanceof String) {
		  return (String)object;
	  } else {
		  throw new TextFlowException("Tipo non corretto");
	  }
  }
}